package axht.trade.android.storage;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button btn_shared;
    private Button btn_inner;
    private Button btn_sd;
    private Button btn_sqlite;
    private Button btn_network;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btn_shared = findViewById(R.id.btn_shared);
        btn_inner = findViewById(R.id.btn_inner);
        btn_sd = findViewById(R.id.btn_sd);
        btn_sqlite = findViewById(R.id.btn_sqlite);
        btn_network = findViewById(R.id.btn_network);
        btn_shared.setOnClickListener(this);
        btn_inner.setOnClickListener(this);
        btn_sd.setOnClickListener(this);
        btn_sqlite.setOnClickListener(this);
        btn_network.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_shared:
                startActivity(new Intent(this, SharedPreferencesActivity.class));
                break;
            case R.id.btn_inner:
                startActivity(new Intent(this, InnerActivity.class));
                break;
            case R.id.btn_sd:
                startActivity(new Intent(this, SdActivity.class));
                break;
            case R.id.btn_sqlite:
                startActivity(new Intent(this,SqliteActivity.class));
                break;
            case R.id.btn_network:
                startActivity(new Intent(this,NetworkActivity.class));
        }
    }



}
